package org.erp.store.domain.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import org.erp.common.basic.BaseEntity;

/**
 * 库存表(DeviceInventory)表实体类
 *
 * @author dingding
 * @since 2025-11-12 10:17:22
 */

@Data
public class DeviceInventory extends BaseEntity {
    //主键ID
    private Long id;

    //采购id
    private String orderNo;
    //产品名称
    private String productName;
    //背贴码
    private String productCode;
    //imei
    private String productImei;
    //分类ID
    private Long categoryId;
    //成色等级id
    private Long levelId;
    //品牌ID
    private Long brandId;
    //系列ID
    private Long seriesId;
    //型号ID
    private Long modelId;
    //产品颜色
    private String productColor;
    //产品内存
    private String productStorage;
    //商户id
    private Long tenantId;
    //商户名称
    private String tenantName;

    //采购价
    private Integer procurementPrice;

    //状态1：已入库2：调拨中3：已接驳4：驳回中5：待返库6；已退库7：已销售
    private Integer status;
    //采购溢价
    private Integer procurementPremium;
    //维修价
    private Integer repairPrice;
    //当前接驳人id
    private Long transferUserId;
    //当前接驳人
    private String transferUserName;
    //操作人ID
    private Long operateId;
    //操作人
    private String operateName;
//    //乐观锁版本号
//    @Version
//    private Integer version;


    //逻辑删除 0存在 1删除
    private Integer delFlag;

    //部门id
    private Long deptId;
    //部门名称
    private String deptName;
    //调拨次数
    private Integer transferNum;

    private Long storeId;

    private String storeName;


    // 最近一次进入入库(INBOUND)的时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastInboundTime;

    // 累计在库天数（自然日差累计）
    private Integer stockDaysTotal;

    //销售价
    private Integer sellPrice;
    //销售人id
    private Long sellerId;
    //销售人
    private String sellerName;





}
